﻿@namespace BlazorComponent
@typeparam TValue
@typeparam TRangeSlider
@inherits ComponentPartBase<TRangeSlider>

<div class="@CssProvider.GetClass("thumb-container")" style="@CssProvider.GetStyle("thumb-container")"
     @ref="ThumbElement" @attributes="ThumbAttrs"
     @onfocus="OnFocus"
     @onblur="OnBlur"
     @onkeydown="OnKeyDown"
     @onkeydown:preventDefault>
    @RenderPart(typeof(BSliderThumb<,,>))
    @if (ShowThumbLabel)
    {
        @RenderPart(typeof(BSliderThumbLabel<,,>))
    }
</div>

@*We will change this when named ref supported*@
<div class="@CssProvider.GetClass("thumb-container",data:1)" style="@CssProvider.GetStyle("thumb-container",data:1)"
     @ref="SecondThumbElement" @attributes="ThumbAttrs"
     @onfocus="OnSecondFocus"
     @onblur="OnSecondBlur"
     @onkeydown="OnKeyDown"
     @onkeydown:preventDefault>
    @RenderPart(typeof(BSliderThumb<,,>))
    @if (ShowThumbLabel)
    {
        @RenderPart(typeof(BSliderThumbLabel<,,>),1,arg0Name:"Index")
    }
</div>

